<extend name="_Layout/main"/>
<block name="style">

</block>
<block name="main">
    <div class="builder-container builder-form-container">
        <div class="row">
            <div class="col-xs-12">
                <div class="table-responsive">
                    <h3>{$listname}</h3>
                    <a style="margin-bottom: 10px;"   href="{:U('Admin/User/index')}&select=1" class="btn btn-success">全部</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=2" class="btn btn-default">已激活</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=3" class="btn btn-default">未激活</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=4" class="btn btn-default">v1会员</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=5" class="btn btn-default ">v2会员</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=6" class="btn btn-default">v3会员</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=7" class="btn btn-default">v4会员</a>
                    <a style="margin-bottom: 10px;"  href="{:U('Admin/User/index')}&select=8" class="btn btn-default">冻结会员</a>
                    <div class="col-xs-12 col-sm-3" style="float:right;">
                        <div class="input-group search-form">
                            <form class="input-group search-form" method="post" action="{:U('Admin/User/index')}">
                            <input type="text" name="keyword" class="search-input form-control" value="" placeholder="用户名/手机号/姓名">
                            <span class="input-group-btn"><button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button></span>
                            </form>
                        </div>
                    </div>
                <table class="table table-condensed">
                    <thead>
                    <tr class="success">
                        <th>序号</th>
                        <th>会员名称</th>
                        <th>会员等级</th>
                        <th>动态钱包</th>
                        <th>静态钱包</th>
                        <th>姓名</th>
                        <th>手机号</th>
                        <th>状态</th>
                        <th>直推数</th>
                        <th>团队人数</th>
                        <th>开通时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="data_list" id="sf">
                    <tr>
                        <th scope="row">{$i}</th>
                        <td><a style="text-decoration: none;" target="_blank" href="{:U('Home/User/vipLogin')}&key={$keykey}&username={$sf.username}">{$sf.username}</a></td>
                        <td><if condition="$sf.lbw_viplevel eq 0">V1<elseif condition="$sf.lbw_viplevel eq 1"/>V2<elseif condition="$sf.lbw_viplevel eq 2"/>V3<else />V4</if></td>
                        <td>{$sf.user_dt_money}</td>
                        <td>{$sf.user_jt_money}</td>
                        <td>{$sf.realname}</td>
                        <td>{$sf.mobile}</td>
                        <td><if condition="$sf.status eq 0">已禁用<else />正常</if></td>
                        <td>{$sf.lbw_zhitui}</td>
                        <td>{$sf.lbw_teamcount}</td>
                        <td><?php echo date('Y-m-d H:i:s',$sf[ctime]); ?></td>
                        <td>
                            <a class="btn btn-danger" data-toggle="modal" data-target=".lbw_caozuo{$i}" href="#">操作</a>
                        </td>
                    </tr>
                      </volist>
                    <tr>
                        <td style="color:#c9302c;">{$listname}数:</td>
                        <td style="color:#c9302c;">{$total}:人</td>
                    </tr>
                    </tbody>
                </table>
                    <volist name="data_list" id="sf">
                    <div class="modal fade bs-example-modal-lg lbw_caozuo{$i}" style="top:10%;"  tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content" style="border-radius:10px;background-color: #fff">
                                <div class="modal-header" style="background: #99cc99;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title">账户信息</h4>
                                </div>
                                <div class="col-md-12" style="background-color: #FFF;">
                                    <div class="col-md-6">
                                    <form class="form-horizontal" action="{:U('Admin/User/bianji')}" method="post">

                                                <input type="hidden" value="{$sf.username}" name="username" class="form-control" placeholder="請輸入">
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-3 control-label">姓名</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.realname}" name="realname" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-3 control-label">密码</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.password}" name="password" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-3 control-label">二级密码</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.lbw_twopwd}" name="lbw_twopwd" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-3 control-label">手机号</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.mobile}" name="mobile" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-3 control-label">用户等级</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.lbw_viplevel}" name="lbw_viplevel" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-3 control-label">身份证号码</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.idcard_no}" name="idcard_no" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-3 control-label">银行卡号</label>
                                            <div class="col-sm-9">
                                                <input type="text" value="{$sf.lbw_banknumber}" name="bank_number" class="form-control" placeholder="請輸入">
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="submit" class="btn btn-default" style="text-align:center;background: #99cc99;border-color: #99cc99 !important;color: #FFF;">信息修改</button>
                                        </div>
                                    </form>
                                    </div>
                                    <div class="col-md-6">
                                        <ul class="list-group">
                                            <li class="list-group-item"><b>账号: </b>{$sf.username}</li>
                                            <li class="list-group-item"><b>用户等级: </b><if condition="$sf.lbw_viplevel eq 0">V1<elseif condition="$sf.lbw_viplevel eq 1"/>V2<elseif condition="$sf.lbw_viplevel eq 2"/>V3<else />V4</if></li>
                                            <li class="list-group-item"><b>身份证号码: </b>{$sf.idcard_no}</li>
                                            <li class="list-group-item"><b>手机号: </b>{$sf.mobile}</li>
                                            <li class="list-group-item"><b>银行卡号: </b>{$sf.lbw_banknumber}</li>
                                            <li class="list-group-item"><b>姓名: </b>{$sf.realname}</li>
                                            <li class="list-group-item"><b>提现锁定状态: </b><if condition="$sf.tixian_sd eq 0">未锁定<else />已锁定</if></li>
                                        </ul>
                                    </div>
                                    <div class="col-md-12" style="margin-bottom: 20px;">
                                        <a href="{:U('Admin/User/dongjie')}&id={$sf.id}" class="btn btn-default">冻结账号</a>
                                        <a href="{:U('Admin/User/suoding')}&id={$sf.id}" class="btn btn-default">锁定提现</a>
                                        <a href="{:U('Admin/User/yjjiedong')}&id={$sf.id}" class="btn btn-default">解冻账号</a>
                                        <a href="{:U('Admin/User/yjjiesuo')}&id={$sf.id}" class="btn btn-default">解锁提现</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    </volist>
                    <ul class="pagination">{$page}</ul>
                    </div>

                </div>
                </div>
            </div>
        </div>
</block>